package cn.js189.gateway.config;

import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 动态路由配置
 * @author: jzd
 **/
@Configuration
public class GatewayRouterConfig {

//    @Bean
//    public RouteLocator appRouteLocator(RouteLocatorBuilder builder) {
//        /**  路由规则配置 */
//        return builder.routes()
//                .route(r -> r.path("/nuqc-system")
//                        .uri("http://localhost:9201")
//                        .id("nuqc-system")
//                )
//                .build();
//    }
}
